
import 'package:flutter/material.dart';
import 'package:flutter_app/openeye/widget/app_bar.dart';
import 'package:flutter_app/ui/demojuejinme/pageitem.dart';

class DemoJueJInMe extends StatefulWidget {
  const DemoJueJInMe({Key? key}) : super(key: key);

  @override
  _DemoJueJInMeState createState() => _DemoJueJInMeState();
}

class _DemoJueJInMeState extends State<DemoJueJInMe> {
  @override
  Widget build(BuildContext context) {
    return materialPage(appBar:appBar("我的"),page: Column(
      children: [
        createItem(Icons.build,"消息中心",notifyInfo: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
        const Divider(indent:30,endIndent: 30,),
        createItem(Icons.build,"消息中心",info: "2"),
      ],
    ));
  }

  createItem(IconData build, String title, {String? info,String? notifyInfo}) {
    return JueJinDemo(iconData: build,title: title,info: info,notifyInfo:notifyInfo);
  }
}
